<?php
include_once('connection/connection.php');
if(isset($_POST['tanker_info']))
{
$tankId=$_POST['tankId'];
$tank_no=$_POST['tank_no'];
$water_supply=$_POST['qty'];
$area_covered=$_POST['area'];

$qr="update tbl_dtls_q1_tanker set total_tanker_no='$tank_no',water_quantity='$water_supply',area_covered='$area_covered' , to_date='$_REQUEST[firstinput]', from_date='$_REQUEST[secondinput]' where id='$tankId'";
$res=mysql_query($qr);

if($res)
{
header("location:q1_rwss_edit.php");
}
}
?>
